﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using GPCSC.Webs;
using GPCSC.Model;
using System.Collections;
using NickLee.Common;
using System.Data;


namespace GPCSC.Web.CM
{
    public partial class DWmd_V : PageBase
    {
        protected void Page_Load(object sender, EventArgs e)
        {
            if (!IsPostBack)
            {
                F_bound();
            }
        }
        protected void F_bound()
        {
            string type = Usual.f_querystringToString("type");
            string id = Usual.f_querystringToString("id");
            Hashtable hta = new Hashtable();
            hta.Add("@id", id);
            DataSet ds = new DataSet();
            if (type == "1")
            {
                ds = new SqlReadXml().ReaderDataSet("select_mqbyid", hta);
            }
            else
            {
                ds = new SqlReadXml().ReaderDataSet("select_dybyid", hta);
            }
            if (ds.Tables.Count > 0)
            {
                if (ds.Tables[0].Rows.Count > 0)
                {
                    NR.InnerHtml = ds.Tables[0].Rows[0]["wz"].ToString().Replace("^","\n");
                }
            }
        }
    }
}